<template>
	<view class="">
		<view class="header">
			<view class="basj">
				<image @click="gobacks" src="/static/dazi/bak.png" mode=""></image>
				<text class="title">实时翻译</text>
			</view>
		</view>
		<view class="conshe">

			<view class="comesc">
				<view class="skoen">
					<view class="lehs">
						<text class="sje">实时翻译</text>
						<text class="ajs">自动检测并翻译</text>
					</view>
					<view class="rihs">
						<image src="/static/dazi/no.png" mode=""></image>
						<!-- <image src="/static/dazi/off.png" mode=""></image> -->
					</view>
				</view>

				<view class="ansm">
					<view class="lehs">
						<text class="sje">实时翻译</text>
					</view>

					<view class="elds" @click="show = true" >
						<view class="sejx">
							简体中文
						</view>
						<image class="hsie" src="/static/dazi/Polygon 2.png" mode=""></image>
					</view>

				</view>
			</view>
		</view>

		<up-overlay :show="show" @click="show = false"
			style="display: flex;align-items: flex-end;justify-content: center;">
			<view class="pouper" @tap.stop>
				<view class="psje">
					<view class="">

					</view>
					<view class="laue">
						选择翻译语言
					</view>
					<image @click=" show = false " src="/static/dazi/clos.png" mode=""></image>
				</view>

				<view class="cosje">
					<view class="poeoens">
						<view class="alks" v-for="(item ,index) in 3" @click="chansele(index)">
							<view class="lksen">
								<image src="/static/dazi/xg.png" mode=""></image>
								<view class="enla" :class=" dounel ==index?'aseng':'' ">
									English
								</view>
							</view>
							<view class="jdov" v-if=" dounel ==index ">
								<image class="onse" src="/static/acti/slw.png" mode=""></image>
							</view>
						</view>
					</view>
				</view>

			</view>
		</up-overlay>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				dounel: 0,
				show: false,

			}
		},
		methods: {
			chansele(i) {
				this.dounel = i
			},
			gobacks() {

				// #ifdef H5
				history.back();
				// #endif

				// #ifdef APP
				uni.navigateBack()
				// #endif

			},
		}
	}
</script>

<style lang="scss">
	.aseng {
		color: #FB75D6 !important;
		font-weight: 700;
	}

	.poeoens {
		margin: 20rpx 0;
	}

	.alks {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 24rpx 0;
		border-bottom: 1px solid #F8EFF9;
		display: flex;
		align-items: center;
	}

	.onse {

		width: 48rpx;
		height: 48rpx;

	}

	.lksen {
		display: flex;
		align-items: center;

		.enla {
			margin-left: 20rpx;
			color: #2A222F;
			font-size: 32rpx;
		}

		image {
			width: 60rpx;
			height: 60rpx;
			border-radius: 50%;
		}
	}

	.psje {
		display: flex;
		align-items: center;
		justify-content: space-between;

		image {
			width: 48rpx;
			height: 48rpx;
		}
	}

	.laue {
		color: #2A222F;
		font-size: 32rpx;
	}

	.pouper {
		background-color: #fff;
		width: 100%;
		padding: 30rpx;
	}

	.sejx {
		color: #2A222F;
		font-size: 28rpx;
	}

	.elds {
		margin-top: 20rpx;
		border: 1px solid #EDE5ED;
		padding: 30rpx 20rpx;
		border-radius: 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.hsie {
		width: 24rpx;
		height: 20rpx;
	}

	.ansm {
		background-color: #fff;
		padding: 30rpx;
		border-radius: 32rpx;
		display: flex;
		flex-direction: column;

		justify-content: space-around;
	}

	.skoen {
		background-color: #fff;
		padding: 30rpx;
		border-radius: 32rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 30rpx;
	}

	.lehs {
		display: flex;
		flex-direction: column;

		.sje {
			color: #000000;
			font-size: 28rpx;
		}

		.ajs {
			margin-top: 14rpx;
			color: #837487;
			font-size: 24rpx;
		}
	}

	.rihs {
		align-self: flex-start;

		image {
			width: 64rpx;
			height: 48rpx;
		}
	}

	.conshe {
		margin: 60rpx 0;
	}

	page {
		padding: 30rpx;
		background-color: #f7eff8;
		overflow: hidden;
		background-image: url('/static/assets7/e9cd3fc4ee4eabc1262262a469ab1c21.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.basj {
		display: flex;
		align-items: center;
		height: 60rpx;

		image {
			width: 48rpx;
			height: 48rpx;
			vertical-align: middle;
		}

		.title {
			margin-left: 10rpx;
			color: #2A222F;
			font-size: 40rpx;
		}
	}

	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 60rpx;

		letter-spacing: 2rpx;
		/* 字母间距 */
		font-weight: 600;
		// border: #dddddd solid 1px;

		.btn-side {
			position: absolute;
			line-height: 60rpx;
			font-size: 28rpx;
			cursor: pointer;

			&.right {
				right: 30rpx;
			}
		}
	}
</style>